package com.llbnk.logpool;


import com.llbnk.pojo.entity.DetailLog;
import com.llbnk.service.DetailLogService;

import java.util.List;


public class InsertThread implements Runnable {

    private DetailLogService detailLogService;

    private List<DetailLog> list;

    public InsertThread(DetailLogService detailLogService, List<DetailLog> list) {
        this.detailLogService = detailLogService;
        this.list = list;
    }

    @Override
    public void run() {
        detailLogService.batchInsert(list);
        // hellp GC
        list = null;
    }
}
